<%--@elvariable id="safeMeasures" type="java.lang.String"--%>
<%--@elvariable id="highLicense" type="com.weitu.worklicense.entity.HighLicense"--%>
<%--@elvariable id="workTypeId" type="java.lang.String"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>高处作业许可编辑</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/workLicense/highLicense/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:180px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
    <a id="btn_execute" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-check fa-lg">执行</a>
</div>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">票证编号:</label>
                    <input readonly value="${highLicense.code}" class="easyui-textbox" prompt="保存后自动生成" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="workTypeId" name="workTypeId" value="${workTypeId}">
                    <input type="hidden" class="hide" id="applyId" name="applyId">
                    <input type="hidden" class="hide" id="id" name="id" value="${highLicense.id}">
                </div>
                <div class="form_one">
                    <label class="lable-style">票证级别:</label>
                    <input id="certLevelId" name="certLevelId" value="${highLicense.certLevelId}" data-options="required:true" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">申请人:</label>
                    <input id="applyUserName" name="applyUserName" value="${highLicense.applyUserName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="applyUserId" id="applyUserId" value="${highLicense.applyUserId}" >
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划开始时间:</label>
                    <input id="planStartTime" name="planStartTime" value="${highLicense.planStartTime}" class="easyui-datetimebox" data-options="required:true,validType:'startDateCompare[\'#planEndTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">计划结束时间:</label>
                    <input id="planEndTime" name="planEndTime" value="${highLicense.planEndTime}" class="easyui-datetimebox" data-options="required:true,validType:'endDateCompare[\'#planStartTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">申请部门:</label>
                    <input id="applyDeptId" name="applyDeptId" value="${highLicense.addDeptId}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">作业内容:</label>
                    <input id="workContent" name="workContent" value="${highLicense.workContent}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">施工地点:</label>
                    <input id="workPoint" name="workPoint" value="${highLicense.workPoint}" type="text" class="easyui-textbox" data-options="required:true" style="width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">作业单位:</label>
                    <input id="contractorName" name="contractorName" value="${highLicense.contractorName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="contractorAuditId" name="contractorAuditId" value="${highLicense.contractorAuditId}">
                </div>
                <div class="form_one">
                    <label class="lable-style">危害识别:</label>
                    <input id="dangerTypeIds" name="dangerTypeIds" value="${highLicense.dangerTypeIds}" class="easyui-combobox" data-options="required:true" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">作业人:</label>
                    <input id="workStaffName" name="workStaffName" value="${highLicense.workStaffName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">主要安全措施:</label>
                    <input id="safeMeasures" name="safeMeasures" value="${safeMeasures}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="com.weitu.accessory.bean.AccessoryPackageInfo"--%>
                    <accessory:accessorySimple permission="write" packageInfos="${accessoryList}" packageKey="high_license" uploadUserId="${sessionScope.loginUser.id}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
